package a.f.h.f;

import a.c.w;
import a.c.x;
import a.f.cb;
import a.f.h.b.a;
import a.f.h.b.l;
import a.f.h.d.m;
import a.f.h.d.r;
import a.f.j.db;
import a.f.oc;
import a.f.rc;
import a.i.mb;

public class g
  implements rc, f
{
  private a.c.k l;
  private a.c.k r;
  private int s = 25;
  private boolean t;
  private boolean u = true;
  private int v = 50;
  protected short w = 1;
  protected short x = 0;
  protected short y = 1;
  protected short z = 0;
  private short A = 2;
  protected a.f.h.d.q B = new m();
  private boolean C = false;
  private boolean D = true;
  private boolean E = false;
  private boolean F = false;
  private boolean G = false;
  private a.f.h.k H;
  private cb I;
  public static boolean J;
  
  public g(cb paramcb)
  {
    this.I = paramcb;
  }
  
  public a.f.h.k a()
  {
    return this.H;
  }
  
  public void a(a.f.h.k paramk)
  {
    this.H = paramk;
  }
  
  public boolean b()
  {
    return this.G;
  }
  
  public void a(boolean paramBoolean)
  {
    this.G = paramBoolean;
  }
  
  public boolean c()
  {
    return this.F;
  }
  
  public void b(boolean paramBoolean)
  {
    this.F = paramBoolean;
  }
  
  public int d()
  {
    return this.s;
  }
  
  public void a(int paramInt)
  {
    this.s = paramInt;
  }
  
  public boolean e()
  {
    return this.t;
  }
  
  public void c(boolean paramBoolean)
  {
    this.t = paramBoolean;
  }
  
  public void a(short paramShort)
  {
    this.w = paramShort;
  }
  
  public short f()
  {
    return this.w;
  }
  
  public short g()
  {
    return this.x;
  }
  
  public void b(short paramShort)
  {
    this.x = paramShort;
  }
  
  public short h()
  {
    return this.y;
  }
  
  public void c(short paramShort)
  {
    this.y = paramShort;
  }
  
  public void d(short paramShort)
  {
    this.z = paramShort;
  }
  
  public short i()
  {
    return this.z;
  }
  
  public void e(short paramShort)
  {
    this.A = paramShort;
  }
  
  public short j()
  {
    return this.A;
  }
  
  public boolean k()
  {
    return this.u;
  }
  
  public void e(boolean paramBoolean)
  {
    this.u = paramBoolean;
  }
  
  public int l()
  {
    return this.v;
  }
  
  public void c(int paramInt)
  {
    this.v = paramInt;
  }
  
  public a.f.h.d.q n()
  {
    return this.B;
  }
  
  public void a(a.f.h.d.q paramq)
  {
    this.B = paramq;
  }
  
  public void f(boolean paramBoolean)
  {
    this.C = paramBoolean;
  }
  
  public void g(boolean paramBoolean)
  {
    this.D = paramBoolean;
  }
  
  public void h(boolean paramBoolean)
  {
    this.E = paramBoolean;
  }
  
  public boolean canLayout(a.f.o paramo)
  {
    return true;
  }
  
  public void doLayout(a.f.o paramo)
  {
    int j = c.n;
    int i = c.m;
    a.c.k localk = paramo.c("PARTITION_ORIENTATION_DPKEY");
    cb localcb = (cb)localk.get(paramo);
    paramo.a("PARTITION_ORIENTATION_DPKEY", a.i.q.a(this.I));
    mb localmb = new mb();
    x localx1 = paramo.B();
    paramo.a(a.f.h.d.o.t, localx1);
    Object localObject1 = paramo.v();
    while (((w)localObject1).e())
    {
      localx1.a(((w)localObject1).d(), 5);
      ((w)localObject1).f();
      if (i != 0)
      {
        if (j == 0) {}
        a.c.q.n = !a.c.q.n;
      }
    }
    localObject1 = new c();
    a.c.n localn1 = (a.c.n)paramo.c(a.f.h.h.w);
    ((c)localObject1).a(new b_(paramo, localn1, null));
    ((c)localObject1).a(this.t);
    this.l = paramo.c(e.a);
    this.r = paramo.c(e.b);
    x localx2 = paramo.B();
    ((c)localObject1).a(paramo, localx2, this.l, this.r, localx1);
    a locala = new a();
    locala.a(this.s);
    locala.a(this.H);
    a.c.n localn2 = paramo.C();
    a.c.n localn3 = null;
    a.f.h.f.a.e locale = null;
    a.c.n localn4 = null;
    a.c.n localn5 = null;
    Object localObject2;
    Object localObject5;
    Object localObject3;
    if (this.t)
    {
      localn3 = paramo.C();
      localObject4 = new a.f.j.h();
      ((a.f.j.h)localObject4).a(true);
      ((a.f.j.h)localObject4).a(localn3);
      localObject2 = localObject4;
      localObject5 = new r();
      ((r)localObject5).a(localn3);
      ((r)localObject5).a(100);
      ((r)localObject5).c(20);
      localObject3 = localObject5;
    }
    else
    {
      locale = new a.f.h.f.a.e(paramo);
      localn4 = paramo.C();
      localn5 = paramo.C();
      ((c)localObject1).a(paramo, locale, localn4, localx2, localn5);
      localObject4 = new a.f.h.f.a.b();
      ((a.f.h.f.a.b)localObject4).a(locale);
      ((a.f.h.f.a.b)localObject4).a(localn4);
      ((a.f.h.f.a.b)localObject4).c(true);
      ((a.f.h.f.a.b)localObject4).a(localx2);
      ((a.f.h.f.a.b)localObject4).b(localn2);
      ((a.f.h.f.a.b)localObject4).d(localn5);
      ((a.f.h.f.a.b)localObject4).a(this.u);
      ((a.f.h.f.a.b)localObject4).f(((c)localObject1).a());
      ((a.f.h.f.a.b)localObject4).c(this.v);
      localObject2 = localObject4;
      localObject5 = new d();
      ((d)localObject5).a(this.E);
      ((d)localObject5).a(locale);
      ((d)localObject5).a(localn4);
      ((d)localObject5).a(localn2);
      ((d)localObject5).a(localx2);
      ((d)localObject5).b(localn5);
      ((d)localObject5).c(((c)localObject1).a());
      ((d)localObject5).a(this.B);
      localObject3 = localObject5;
    }
    Object localObject4 = new a.f.h.d.o();
    ((a.f.h.d.o)localObject4).b(this.C);
    ((a.f.h.d.o)localObject4).a(d());
    ((a.f.h.d.o)localObject4).a(this.x);
    ((a.f.h.d.o)localObject4).b(this.z);
    ((a.f.h.d.o)localObject4).b(this.A);
    ((a.f.h.d.o)localObject4).a(true);
    locala.a(localObject2);
    locala.a(localObject3);
    locala.a((l)localObject4);
    locala.a(new a.f.h.d.b());
    locala.j(paramo.c(oc.a) != null);
    locala.k(this.F);
    locala.q();
    locala.doLayout(paramo);
    if (j == 0) {
      if (this.D) {
        ((c)localObject1).a(paramo, localx2);
      }
    }
    if (j == 0)
    {
      if (this.t)
      {
        paramo.a(localn3);
        if (j != 0) {
          break label774;
        }
      }
    }
    else {
      if (i == 0) {
        break label739;
      }
    }
    locale.a();
    paramo.a(localn2);
    paramo.a(localn4);
    paramo.a(localn5);
    label739:
    paramo.a(localx2);
    ((c)localObject1).a(paramo);
    paramo.j(a.f.h.d.o.t);
    paramo.a(localx1);
    paramo.a("PARTITION_ORIENTATION_DPKEY", a.i.q.a(localcb));
    label774:
    if (j != 0) {
      a.c.q.o = !a.c.q.o;
    }
  }
  
  protected void a(a.c.q paramq)
  {
    a.i.n.a("Node Map Count: " + paramq.D().length);
    a.i.n.a("Edge Map Count: " + paramq.F().length);
  }
  
  public void a(a.f.h.b.f paramf) {}
  
  public void o() {}
  
  public int p()
  {
    return 0;
  }
  
  private class b_
    implements db
  {
    private final a.f.o a;
    private final a.c.n b;
    
    private b_(a.f.o paramo, a.c.n paramn)
    {
      this.a = paramo;
      this.b = paramn;
    }
    
    public void a(a.c.d paramd, a.f.j.n[] paramArrayOfn1, a.f.j.n[] paramArrayOfn2) {}
    
    public void a(a.c.d paramd, a.c.d[] paramArrayOfd)
    {
      int k = c.n;
      int j = c.m;
      a.f.h.k localk1 = (a.f.h.k)this.b.get(paramd);
      if (localk1 != null)
      {
        int i = 0;
        do
        {
          if (i >= paramArrayOfd.length) {
            break;
          }
          a.c.d locald = paramArrayOfd[i];
          a.f.h.k localk2 = (a.f.h.k)this.b.get(locald);
          if ((k != 0) || (localk2 != null))
          {
            double d1 = Math.max(localk2.c(), localk1.c());
            localk2.c(d1);
            double d2;
            if (k == 0) {
              if (i == 0)
              {
                d2 = Math.max(localk2.a(), localk1.a());
                localk2.a(d2);
              }
            }
            if (k != 0) {
              continue;
            }
            if (i == paramArrayOfd.length - 1)
            {
              d2 = Math.max(localk2.b(), localk1.b());
              localk2.b(d2);
              if (k != 0) {
                continue;
              }
              if (j == 0) {}
            }
          }
          else
          {
            this.b.a(locald, localk1.d());
          }
          i++;
        } while (j == 0);
      }
    }
    
    public void a(a.c.d[] paramArrayOfd, a.c.d paramd) {}
    
    public void b(a.c.d paramd, a.f.j.n[] paramArrayOfn1, a.f.j.n[] paramArrayOfn2) {}
    
    b_(a.f.o paramo, a.c.n paramn, g.0 param0)
    {
      this(paramo, paramn);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.h.f.g
 * JD-Core Version:    0.7.0.1
 */